package com.mlf.factory.factory.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ShapeController {
    @Autowired
    private ShapeService shapeService;

    @GetMapping("/shape")
    public void getShape() {
        shapeService.shapeDraw();
    }

    @GetMapping("/shapeFactory")
    public void getShapeFactory() {
        shapeService.shapeFactoryDraw();
    }
}
